package com.example.yqand4v1_1.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class NewsDiscussVO {
    // 封装参数
    private Integer id;
    private Integer newsId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime addTime;
    private String username;
    private String content;
    private Integer userId;
    private Integer pId;
    private List<NewsDiscussVO> children = new ArrayList<>(); // 回复
}
